403Webshell
Server IP : 151.101.66.159  /  Your IP : 216.73.216.66
Web Server : Flywheel/5.1.0
System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64
User : root ( )
PHP Version : 7.4.33.18
Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wp-content/plugins/file-manager-advanced/application/assets/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wp-content/plugins/file-manager-advanced/application/assets/dist/608.9ae62fa9.chunk.js
/*! For license information please see 608.9ae62fa9.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunkafm_react_admin=self.webpackChunkafm_react_admin||[]).push([[608],{4608(e,t,n){n.r(t),n.d(t,{default:()=>b});var r=n(6540),a=n(961),o=n(5688),i=n(4848);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(n,r,a,o){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return s(u,"_invoke",function(n,r,a){var o,l,c,s=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,n){return o=t,l=0,c=e,f.n=n,i}};function m(n,r){for(l=n,c=r,t=0;!d&&s&&!a&&t<u.length;t++){var a,o=u[t],m=f.p,h=o[2];n>3?(a=h===r)&&(c=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=m&&((a=n<2&&m<o[1])?(l=0,f.v=r,f.n=o[1]):m<h&&(a=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,l=0))}if(a||n>1)return i;throw d=!0,r}return function(a,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,h),l=u,c=h;(t=l<2?e:c)||!d;){o||(l?l<3?(l>1&&(f.n=-1),m(l,c)):f.n=c:f.v=c);try{if(s=2,o){if(l||(a="next"),t=o[a]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((t=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(t){o=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,a,o),!0),u}var i={};function l(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),m=d.prototype=l.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,s(m,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,a,"GeneratorFunction"),s(m),s(m,a,"Generator"),s(m,r,function(){return this}),s(m,"toString",function(){return"[object Generator]"}),(c=function(){return{w:o,m:h}})()}function s(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}s=function(e,t,n,r){function o(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},s(e,t,n,r)}function u(e,t,n,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){u(o,r,a,i,l,"next",e)}function l(e){u(o,r,a,i,l,"throw",e)}i(void 0)})}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=[{value:"all",label:"All"},{value:"uploaded",label:"Uploaded"},{value:"created",label:"Created"},{value:"deleted",label:"Deleted"},{value:"renamed",label:"Renamed"},{value:"duplicated",label:"Duplicated"},{value:"pasted",label:"Pasted"},{value:"updated",label:"Updated"}];function b(){var e,t,n,l,s,u,f,h=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onContentReady,b=(0,o.lA)(),j=(null===(e=window.wpApiSettings)||void 0===e?void 0:e.nonce)||(null===(t=window.afmReact)||void 0===t?void 0:t.nonce)||"",x=(null===(n=window.afmReact)||void 0===n?void 0:n.pluginUrl)||(null===(l=window.afm_object)||void 0===l?void 0:l.plugin_url)||"/wp-content/plugins/file-manager-advanced/",w="".concat(x,"application/assets/images/shell/"),N=p((0,r.useState)([]),2),S=N[0],k=N[1],_=p((0,r.useState)(!0),2),A=_[0],O=_[1];(0,r.useEffect)(function(){A||null==h||h()},[A,h]);var D=p((0,r.useState)(1),2),P=D[0],C=D[1],T=p((0,r.useState)(1),2),M=T[0],E=T[1],F=p((0,r.useState)(0),2),R=F[0],Y=F[1],I=p((0,r.useState)("all"),2),L=I[0],U=I[1],H=p((0,r.useState)(""),2),J=H[0],G=H[1],W=p((0,r.useState)(""),2),B=W[0],Q=W[1],$=p((0,r.useState)(""),2),X=$[0],z=$[1],V=p((0,r.useState)(null),2),Z=V[0],q=V[1],K=p((0,r.useState)([]),2),ee=K[0],te=K[1],ne=p((0,r.useState)(null),2),re=ne[0],ae=ne[1],oe=(0,r.useRef)(!1),ie=function(e){var t={page:e,per_page:20};if(L&&"all"!==L&&(t.filter=L),B&&"string"==typeof B&&""!==B.trim()){var n=B.split(" - ");if(2===n.length){var r=n[0].trim(),a=n[1].trim();r.match(/^\d{4}-\d{2}-\d{2}$/)&&a.match(/^\d{4}-\d{2}-\d{2}$/)&&(t.date_range=B)}}return(0,o._H)("file-manager-advanced/v1/file-logs",t)},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m({"X-WP-Nonce":j},t.headers||{});return fetch((0,o._H)(e),m(m({credentials:"same-origin"},t),{},{headers:n}))},ce=function(){return fetch(ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:P),{credentials:"same-origin",headers:{"X-WP-Nonce":j}}).then(function(e){if(!e.ok)throw new Error("HTTP ".concat(e.status));return e.json()}).then(function(e){k(e.logs||[]),E(e.total_pages||1),Y(Number(e.total||e.total_items||0)||0)})};(0,r.useEffect)(function(){b&&j?(O(!0),fetch(ie(P),{credentials:"same-origin",headers:{"X-WP-Nonce":j}}).then(function(e){return e.ok?e.json():e.text().then(function(){throw new Error("HTTP ".concat(e.status,": ").concat(e.statusText))})}).then(function(e){k(e.logs||[]),E(e.total_pages||1),Y(Number(e.total||e.total_items||0)||0),te([]),O(!1)}).catch(function(e){console.error("AFM Logs fetch error:",e),O(!1)})):console.warn("AFM Logs: Missing API root or nonce")},[P,L,B,b,j]);var se=function(){var e=d(c().m(function e(t){var n,r,a;return c().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=String(t||"")){e.n=1;break}return e.a(2,!1);case 1:if(e.p=1,!navigator.clipboard||!window.isSecureContext){e.n=3;break}return e.n=2,navigator.clipboard.writeText(n);case 2:return e.a(2,!0);case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.p=5,(r=document.createElement("textarea")).value=n,r.setAttribute("readonly",""),r.style.position="fixed",r.style.left="-9999px",r.style.opacity="0",document.body.appendChild(r),r.select(),a=document.execCommand("copy"),document.body.removeChild(r),e.a(2,a);case 6:return e.p=6,e.v,e.a(2,!1)}},e,null,[[5,6],[1,4]])}));return function(t){return e.apply(this,arguments)}}(),ue=function(){var e=d(c().m(function e(t,n){return c().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,se(t);case 1:e.v&&(ae(n),setTimeout(function(){return ae(null)},2e3));case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),de=function(e){if(!e)return"—";var t=parseInt(e,10);if(!isNaN(t)&&t>0){var n=new Date(1e3*t);if(!isNaN(n.getTime())){var r=["January","February","March","April","May","June","July","August","September","October","November","December"][n.getMonth()],a=n.getDate(),o=n.getFullYear(),i=n.getHours(),l=n.getMinutes(),c=i>=12?"pm":"am";i=(i%=12)||12;var s=l<10?"0".concat(l):l;return"".concat(r," ").concat(a,", ").concat(o," ").concat(i,":").concat(s).concat(c)}}if("string"==typeof e){var u=new Date(e);if(!isNaN(u.getTime())){var d=["January","February","March","April","May","June","July","August","September","October","November","December"][u.getMonth()],f=u.getDate(),m=u.getFullYear(),h=u.getHours(),p=u.getMinutes(),g=h>=12?"pm":"am";h=(h%=12)||12;var v=p<10?"0".concat(p):p;return"".concat(d," ").concat(f,", ").concat(m," ").concat(h,":").concat(v).concat(g)}if(e.match(/[A-Za-z]+ \d+, \d{4}/))return e}return e};(0,r.useEffect)(function(){if(!A){var e=setTimeout(function(){if(void 0!==window.jQuery&&"function"==typeof window.jQuery.fn.daterangepicker){var e=window.jQuery("#date-range");e.length&&(e.data("daterangepicker")||(e.daterangepicker({autoUpdateInput:!1}),e.off("cancel.daterangepicker").on("cancel.daterangepicker",function(){e.val(""),Q(""),z(""),C(1)}),e.off("apply.daterangepicker").on("apply.daterangepicker",function(t,n){var r="".concat(n.startDate.format("MM/DD/YYYY")," - ").concat(n.endDate.format("MM/DD/YYYY")),a="".concat(n.startDate.format("YYYY-MM-DD")," - ").concat(n.endDate.format("YYYY-MM-DD"));e.val(r),z(r),Q(a),C(1)}),oe.current=!0))}},200);return function(){return clearTimeout(e)}}},[A]),(0,r.useEffect)(function(){if(B){var e=B.split(" - ");if(2===e.length){var t=e[0].trim().split("-"),n=e[1].trim().split("-");3===t.length&&3===n.length&&z("".concat(t[1],"/").concat(t[2],"/").concat(t[0]," - ").concat(n[1],"/").concat(n[2],"/").concat(n[0]))}}else z("")},[B]);var fe,me,he,pe=(null===(s=window.afmReact)||void 0===s?void 0:s.hasPro)||!1,ge=(null===(u=window.afmReact)||void 0===u?void 0:u.currentPlan)||"free",ve="boolean"==typeof(null===(f=window.afmReact)||void 0===f?void 0:f.hasFileLogs)?window.afmReact.hasFileLogs:pe&&"free"!==ge,ye=!ve,be=ye?[{id:1001,user:"admin",email:"admin@example.com",time:(fe=Math.floor(Date.now()/1e3))-3600,event:"Uploaded",file_path:"/wp-content/uploads/2024/11/demo-image.jpg",type:"Image",ip:"192.168.1.100"},{id:1002,user:"editor",email:"editor@example.com",time:fe-7200,event:"Deleted",file_path:"/wp-content/uploads/old-document.pdf",type:"Document",ip:"192.168.1.101"},{id:1003,user:"admin",email:"admin@example.com",time:fe-10800,event:"Created",file_path:"/wp-content/uploads/new-folder/",type:"Folder",ip:"192.168.1.100"},{id:1004,user:"author",email:"author@example.com",time:fe-14400,event:"Renamed",file_path:"/wp-content/uploads/renamed-file.txt",type:"Text",ip:"192.168.1.102"},{id:1005,user:"admin",email:"admin@example.com",time:fe-18e3,event:"Duplicated",file_path:"/wp-content/uploads/copy-of-file.png",type:"Image",ip:"192.168.1.100"}]:S,je=J.trim().toLowerCase(),xe=je?be.filter(function(e){return[e.user,e.email,e.event,e.file_path,e.type,e.ip,String(e.id)].filter(Boolean).join(" ").toLowerCase().includes(je)}):be,we=xe.length>0&&xe.every(function(e){return ee.includes(e.id)}),Ne=R||(ye?xe.length:M>1?20*M:xe.length),Se=0===xe.length?0:ye||je?1:20*(P-1)+1,ke=0===xe.length?0:ye||je?xe.length:20*(P-1)+xe.length,_e=function(){return(0,i.jsxs)("span",{className:"afm-logs-sort","aria-hidden":"true",children:[(0,i.jsx)("img",{src:"".concat(w,"logs-sort.svg"),alt:"",width:"12",height:"12"}),(0,i.jsx)("img",{src:"".concat(w,"logs-sort.svg"),alt:"",width:"12",height:"12",className:"afm-logs-sort__up"})]})};return A?(0,i.jsx)("div",{className:"afm-settings-shell",children:(0,i.jsx)("div",{className:"afm-settings-body",children:(0,i.jsxs)("div",{className:"afm-settings-card",children:[(0,i.jsx)("style",{children:"\n              @keyframes afm-skeleton-shimmer {\n                0% { background-position: -200% 0; }\n                100% { background-position: 200% 0; }\n              }\n              .afm-skeleton {\n                background-color: #e2e8f0;\n                background-image: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);\n                background-size: 200% 100%;\n                animation: afm-skeleton-shimmer 1.4s linear infinite;\n              }\n            "}),(0,i.jsx)("div",{className:"afm-skeleton",style:{height:"20px",width:"140px",borderRadius:"6px",marginBottom:"20px"}}),(0,i.jsx)("div",{className:"afm-skeleton",style:{height:"42px",width:"100%",borderRadius:"6px",marginBottom:"20px"}}),[1,2,3,4,5].map(function(e){return(0,i.jsx)("div",{className:"afm-skeleton",style:{height:"48px",width:"100%",borderRadius:"4px",marginBottom:"8px"}},e)})]})})}):(0,i.jsx)("div",{className:"afm-settings-shell",children:(0,i.jsx)("div",{className:"afm-settings-body",children:(0,i.jsxs)("div",{className:"afm-settings-card afm-logs-card",children:[(0,i.jsx)("div",{className:"afm-logs-header",children:(0,i.jsx)("h2",{className:"afm-logs-title",children:"File Logs"})}),(0,i.jsxs)("div",{className:"afm-logs-toolbar",children:[(0,i.jsxs)("label",{className:"afm-logs-search",children:[(0,i.jsx)("img",{src:"".concat(w,"logs-search.svg"),alt:"",width:"13",height:"13"}),(0,i.jsx)("input",{type:"search",value:J,onChange:function(e){return G(e.target.value)},placeholder:"Search","aria-label":"Search logs"})]}),(0,i.jsxs)("div",{className:"afm-logs-toolbar__actions",children:[(0,i.jsx)("select",{className:"afm-logs-select",value:L,onChange:function(e){U(e.target.value),C(1)},"aria-label":"Filter by event",children:y.map(function(e){return(0,i.jsx)("option",{value:e.value,children:e.label},e.value)})}),(0,i.jsx)("input",{type:"text",placeholder:"Date Range",className:"afm-logs-select afm-logs-daterange",id:"date-range",autoComplete:"off",readOnly:!0,value:X,"aria-label":"Date range"}),(0,i.jsxs)("button",{type:"button",className:"afm-logs-btn afm-logs-btn--reset",onClick:function(){U("all"),G(""),Q(""),z(""),C(1),void 0!==window.jQuery&&window.jQuery("#date-range").val("")},children:[(0,i.jsx)("span",{children:"Reset Filters"}),(0,i.jsx)("img",{src:"".concat(w,"logs-reset.svg"),alt:"",width:"14",height:"10"})]}),(0,i.jsxs)("button",{type:"button",className:"afm-logs-btn afm-logs-btn--danger",onClick:function(){ee.length>0?function(e){var t=Array.from(new Set(e.map(function(e){return Number(e)}).filter(function(e){return e>0})));if(t.length){var n=1===t.length?"Are you sure you want to delete this file log?":"Are you sure you want to delete ".concat(t.length," selected file logs?");window.confirm(n)&&le("file-manager-advanced/v1/file-logs/bulk-delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:t})}).then(function(e){return e.ok?e.json():e.json().then(function(e){return Promise.reject(e)})}).then(function(e){if(!e.success)throw new Error(e.message||"Bulk delete failed");return ce(P)}).then(function(){te(function(e){return e.filter(function(e){return!t.includes(Number(e))})})}).catch(function(e){return console.error("AFM Logs bulk delete error:",e)})}}(ee):window.confirm("Are you sure you want to delete ALL file logs? This action cannot be undone.")&&le("file-manager-advanced/v1/file-logs/all",{method:"POST"}).then(function(e){return e.ok?e.json():e.json().then(function(e){return Promise.reject(e)})}).then(function(e){if(!e.success)throw new Error(e.message||"Delete all failed");k([]),C(1),E(1),Y(0),te([])}).catch(function(e){return console.error("AFM Logs delete all error:",e)})},disabled:!ve,title:ve?ee.length>0?"Delete selected logs":"Delete all logs":"Pro feature - Upgrade to unlock",children:[(0,i.jsx)("span",{children:ee.length>0?"Delete Selected":"Delete All"}),(0,i.jsx)("img",{src:"".concat(w,"logs-trash.svg"),alt:"",width:"11",height:"12"})]})]})]}),(0,i.jsx)("div",{className:"afm-logs-table-wrap",children:(0,i.jsxs)("table",{className:"afm-logs-table",children:[(0,i.jsxs)("colgroup",{children:[(0,i.jsx)("col",{style:{width:"55px"}}),(0,i.jsx)("col",{style:{width:"80px"}}),(0,i.jsx)("col",{style:{width:"200px"}}),(0,i.jsx)("col",{style:{width:"200px"}}),(0,i.jsx)("col",{style:{width:"130px"}}),(0,i.jsx)("col",{style:{width:"150px"}}),(0,i.jsx)("col",{style:{width:"150px"}}),(0,i.jsx)("col",{style:{width:"130px"}}),(0,i.jsx)("col",{style:{width:"135px"}})]}),(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{className:"afm-logs-col-check",scope:"col",children:(0,i.jsx)("input",{type:"checkbox",checked:we,onChange:function(){te(we?function(e){return e.filter(function(e){return!xe.some(function(t){return t.id===e})})}:function(e){var t=new Set(e);return xe.forEach(function(e){return t.add(e.id)}),Array.from(t)})},disabled:0===xe.length,"aria-label":"Select all logs"})}),(0,i.jsxs)("th",{className:"afm-logs-col-id",scope:"col",children:[(0,i.jsx)("span",{children:"ID"})," ",(0,i.jsx)(_e,{})]}),(0,i.jsxs)("th",{className:"afm-logs-col-user",scope:"col",children:[(0,i.jsx)("span",{children:"User"})," ",(0,i.jsx)(_e,{})]}),(0,i.jsxs)("th",{className:"afm-logs-col-datetime",scope:"col",children:[(0,i.jsx)("span",{children:"Date & Time"})," ",(0,i.jsx)(_e,{})]}),(0,i.jsxs)("th",{className:"afm-logs-col-event",scope:"col",children:[(0,i.jsx)("span",{children:"Event"})," ",(0,i.jsx)(_e,{})]}),(0,i.jsxs)("th",{className:"afm-logs-col-path",scope:"col",children:[(0,i.jsx)("span",{children:"File Path"})," ",(0,i.jsx)(_e,{})]}),(0,i.jsx)("th",{className:"afm-logs-col-type",scope:"col",children:"Type"}),(0,i.jsx)("th",{className:"afm-logs-col-ip",scope:"col",children:"IP Address"}),(0,i.jsx)("th",{className:"afm-logs-col-actions",scope:"col",children:"Actions"})]})}),(0,i.jsx)("tbody",{children:0===xe.length?(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:"9",className:"afm-logs-empty",children:"No logs found."})}):xe.map(function(e){return(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{className:"afm-logs-col-check",children:(0,i.jsx)("input",{type:"checkbox",checked:ee.includes(e.id),onChange:function(){return t=e.id,void te(function(e){return e.includes(t)?e.filter(function(e){return e!==t}):[].concat(function(e){if(Array.isArray(e))return v(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||g(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t]);var n});var t},"aria-label":"Select log ".concat(e.id)})}),(0,i.jsx)("td",{className:"afm-logs-col-id",children:e.id}),(0,i.jsx)("td",{className:"afm-logs-col-user",children:(0,i.jsxs)("div",{className:"afm-logs-user",children:[(0,i.jsx)("span",{className:"afm-logs-user__name",children:e.user||"—"}),e.email?(0,i.jsx)("span",{className:"afm-logs-user__email",children:e.email}):null]})}),(0,i.jsx)("td",{className:"afm-logs-col-datetime",children:de(e.time)||"—"}),(0,i.jsx)("td",{className:"afm-logs-col-event",children:e.event||"—"}),(0,i.jsx)("td",{className:"afm-logs-col-path",children:(0,i.jsxs)("div",{className:"afm-logs-path",children:[(0,i.jsx)("span",{className:"afm-logs-path__text",title:e.file_path||"",children:e.file_path||"—"}),e.file_path?(0,i.jsx)("button",{type:"button",className:"afm-logs-icon-btn",onClick:function(){return ue(e.file_path,e.id)},title:re===e.id?"Copied!":"Copy file path",children:re===e.id?(0,i.jsx)("span",{className:"dashicons dashicons-yes"}):(0,i.jsx)("img",{src:"".concat(w,"logs-copy.svg"),alt:"",width:"14",height:"14"})}):null]})}),(0,i.jsx)("td",{className:"afm-logs-col-type",children:e.type||"—"}),(0,i.jsx)("td",{className:"afm-logs-col-ip",children:(0,i.jsx)("span",{className:"afm-logs-ip",title:e.ip||"",children:e.ip||"—"})}),(0,i.jsx)("td",{className:"afm-logs-col-actions",children:(0,i.jsxs)("div",{className:"afm-logs-row-actions",children:[(0,i.jsx)("button",{type:"button",className:"afm-logs-icon-btn",disabled:!ve,onClick:function(){return ve&&q(e)},title:ve?"View details":"View details (Pro feature)",children:(0,i.jsx)("img",{src:"".concat(w,"logs-view.svg"),alt:"",width:"14",height:"14","aria-hidden":"true"})}),(0,i.jsx)("button",{type:"button",className:"afm-logs-icon-btn",disabled:!ve,onClick:function(){return ve&&(t=e.id,void(window.confirm("Are you sure you want to delete this file log?")&&le("file-manager-advanced/v1/file-logs/".concat(t),{method:"POST"}).then(function(e){return e.ok?e.json():e.json().then(function(e){return Promise.reject(e)})}).then(function(e){if(!e.success)throw new Error(e.message||"Delete failed");return ce(P)}).then(function(){te(function(e){return e.filter(function(e){return String(e)!==String(t)})})}).catch(function(e){return console.error("AFM Logs delete error:",e)})));var t},title:ve?"Delete log":"Delete log (Pro feature)",children:(0,i.jsx)("img",{src:"".concat(w,"logs-row-trash.svg"),alt:"",width:"14",height:"14"})})]})})]},e.id)})})]})}),(0,i.jsxs)("div",{className:"afm-logs-pagination",children:[(0,i.jsx)("button",{type:"button",className:"afm-logs-page-btn",disabled:ye||P<=1,onClick:function(){return C(1)},"aria-label":"First page",children:"«"}),(0,i.jsx)("button",{type:"button",className:"afm-logs-page-btn",disabled:ye||P<=1,onClick:function(){return C(P-1)},"aria-label":"Previous page",children:"‹"}),(0,i.jsxs)("span",{className:"afm-logs-page-meta",children:[Se,"-",ke," of ",Ne||ke]}),(0,i.jsx)("button",{type:"button",className:"afm-logs-page-btn",disabled:ye||P>=M,onClick:function(){return C(P+1)},"aria-label":"Next page",children:"›"}),(0,i.jsx)("button",{type:"button",className:"afm-logs-page-btn",disabled:ye||P>=M,onClick:function(){return C(M)},"aria-label":"Last page",children:"»"})]}),Z&&(0,a.createPortal)((0,i.jsx)("div",{className:"afm-log-detail-modal",onClick:function(){return q(null)},children:(0,i.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"afm-log-detail-title",className:"afm-log-detail-dialog",onClick:function(e){return e.stopPropagation()},children:[(0,i.jsx)("button",{type:"button",className:"afm-log-detail-close",onClick:function(){return q(null)},"aria-label":"Close log details",children:"×"}),(0,i.jsx)("h3",{id:"afm-log-detail-title",children:"Log Detail"}),(0,i.jsx)("p",{className:"afm-log-detail-body",children:(me=Z.message,he=String(me||"").trim(),he?he.split(/(\*\*\*.*?\*\*\*)/g).map(function(e,t){var n=e.match(/^\*\*\*(.*?)\*\*\*$/);return n?(0,i.jsx)("strong",{style:{fontWeight:700},children:n[1]},t):(0,i.jsx)(r.Fragment,{children:e},t)}):"No details available.")})]})}),document.body)]})})})}},5688(e,t,n){function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(){var e,t;return function(e){if(!e||"string"!=typeof e)return e;try{var t=new URL(e,window.location.origin);return t.protocol=window.location.protocol,t.host=window.location.host,t.toString()}catch(t){return e.startsWith("/")?"".concat(window.location.origin).concat(e):e}}((null===(e=window.wpApiSettings)||void 0===e?void 0:e.root)||(null===(t=window.afmReact)||void 0===t?void 0:t.jsonURL)||"".concat(window.location.origin,"/?rest_route=/"))}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o(),a=n.endsWith("/")?n:"".concat(n,"/"),i=String(e||"").replace(/^\//,""),l=Object.entries(t).filter(function(e){var t=r(e,2)[1];return null!=t&&""!==t}).map(function(e){var t=r(e,2),n=t[0],a=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(a)))});if(a.includes("rest_route=")){var c="".concat(a.split("rest_route=")[0],"rest_route="),s="".concat(c,"/").concat(i);return l.length&&(s+="&".concat(l.join("&"))),s}if(a.includes("/wp-json")){var u=function(e){try{return new URL(e,window.location.origin).origin}catch(e){return window.location.origin}}(a),d="".concat(u,"/?rest_route=/").concat(i);return l.length&&(d+="&".concat(l.join("&"))),d}var f="".concat(a).concat(i);return l.length&&(f+="?".concat(l.join("&"))),f}n.d(t,{_H:()=>i,lA:()=>o})}}]);
//# sourceMappingURL=608.9ae62fa9.chunk.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit